<script setup lang="ts">
	import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
	import { userLifeDataStore } from "@/store/lifeDataStore";
	import { findSetting } from "@/api/wxapp";
	const store = userLifeDataStore();

	const getConfig = () : any => {
		findSetting().then((res : any) : any => {
			store.setConfig(res.data);
		})
	}
	onLaunch(() : any => {
		// 获取系统配置
		getConfig();
	});
	onShow(() : any => {
		console.log("App Show");
	});
	onHide(() : any => {
		console.log("App Hide");
	});
</script>
<style lang="scss">
	page {
		-webkit-tap-highlight-color: transparent;
	}

	@import 'sard-uniapp/index.scss';
	@import '@/common/css/index.scss';
</style>